| Fully Qualified Name: | Laminas\Mvc\Plugin\Identity\Identity |
| Extends: | AbstractPlugin |
Controller plugin to fetch the authenticated identity.
| Name | Description | Defined By |
|---|---|---|
| __invoke() | Retrieve the current identity, if any. | Identity |
| getAuthenticationService() | Identity | |
| getController() | Get the current controller instance | AbstractPlugin |
| setAuthenticationService() | Identity | |
| setController() | Set the current controller instance | AbstractPlugin |
Retrieve the current identity, if any.
If none is present, returns null.
Returns: mixed|null
Returns: \AuthenticationServiceInterface
Get the current controller instance
Returns: null|\Dispatchable
| Parameter Name | Type | Description |
|---|---|---|
| $authenticationService | \AuthenticationServiceInterface |
Returns:
Set the current controller instance
| Parameter Name | Type | Description |
|---|---|---|
| $controller | \Dispatchable |
Returns: void